// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App.vue';
import router from './router';
import 'element-ui/lib/theme-chalk/index.css';
import './views/json_node';
import element from 'element-ui';

Vue.use(element, { size: 'mini' });

import {officeUtils} from 'src/utils/office/office_util';
initVue(Vue, element);
// const Office = Office;
Office.initialize = () => {
  new Vue({
    el: '#app',
    components: { App },
    template: '<App/>',
    router,

    mounted(){
      officeUtils.protectRange('Sheet1', 'a1:c3', (...arg:any[])=>{
        this.$message.success((arg[0][0][2] == '') + '/' +  (arg[1][0][2] == '') + '/' + arg[2]);
      });
    }
  });
}